package com.hhss.qishi.DPtest.designpattern.decorator;

public class Mocha extends ComponentDecorator {

    private Beverage beverage;

    public Mocha(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return this.beverage.getDescription() + " ,mocha";
    }

    @Override
    public double cost() {
        return this.beverage.cost() + 3.0;
    }
}
